POINT LIGHT

This command will point an existing light at a location within the scene.

  Syntax
POINT LIGHT Light Number, X, Y, Z
  Parameters
Light Number
Integer
The light number
X
Float
The x location to point light at
Y
Float
The y location to point light at
Z
Float
The z location to point light at

  Returns

This command does not return a value.

  Description

Only spot lights and directional lights can make use of this command. The light number must be specified using an integer value. The coordinates must be specified using real values.

  Example Code
sync on
autocam off
color backdrop rgb(0,0,0)
load image "ground.jpg",1
make matrix 1,1000,1000,100,100
prepare matrix texture 1,1,1,1
position matrix 1,-500,0,-500
position camera 0,100,0
set ambient light 20
color ambient light rgb(64,64,128)
set directional light 0,0,-1,0
position light 1,0,0,0
color light 0,192,192,192
point light 0,0,0,500
while inkey$()<>"x"
set cursor 0,0
print "LIGHT COMMANDS (X to Exit)"
sync
endwhile
end
  See also

LIGHT Commands Menu
Index